package com.laopan.wxpay.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 微信支付配置信息
 *
 * @author laopan
 * @className WxPayConfig
 * @date 2021/2/22 9:43
 */
@Configuration
@ConfigurationProperties(prefix = "pay.wx")
public class WxPayConfig {

    /**
     * appId
     */
    private String appId;
    /**
     * app密钥
     */
    private String appSecret;
    /**
     * 商户id
     */
    private String mchId;
    /**
     * 商户key
     */
    private String key;
    /**
     * 商户证书序列号
     */
    private String serialNo;
    /**
     * apiV3Key
     */
    private String apiV3Key;
    /**
     * 回调地址
     */
    private String notifyUrl;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public String getApiV3Key() {
        return apiV3Key;
    }

    public void setApiV3Key(String apiV3Key) {
        this.apiV3Key = apiV3Key;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }
}
